﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using QLChoDiaOc.Forms;

namespace QLChoDiaOc
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {

#region Cac form giao dien
        static Main _mainform = null;

        public static Main Mainform
        {
            get {
              
                return _mainform; 
            }
            set { _mainform = value; }
        }

        static FormDangNhap _formdangnhap = null;

        public static FormDangNhap Formdangnhap
        {
            get { return _formdangnhap; }
            set { _formdangnhap = value; }
        }

        static FormDKNguoiBan _fromdangkynguoiban = null;

        public static FormDKNguoiBan Fromdangkynguoiban
        {
            get { return _fromdangkynguoiban; }
            set { _fromdangkynguoiban = value; }
        }

        static DangKyDiaOc _dangkybandiaoc = null;

        public static DangKyDiaOc Dangkybandiaoc
        {
            get { return _dangkybandiaoc; }
            set { _dangkybandiaoc = value; }
        }

        static DichVuQuangCao _dichvuquancao = null;

        public static DichVuQuangCao Dichvuquancao
        {
            get { return App._dichvuquancao; }
            set { App._dichvuquancao = value; }
        }
#endregion

        static string _tenDangNhap;

        public static string TenDangNhap
        {
            get { return App._tenDangNhap; }
            set { App._tenDangNhap = value; }
        }

        //static string _makhachhang = null;

        //public static string Makhachhang
        //{
        //    get { return App._makhachhang; }
        //    set { App._makhachhang = value; }
        //}

        //static string _maphieudangky = null;

        //public static string Maphieudangky
        //{
        //    get { return App._maphieudangky; }
        //    set { App._maphieudangky = value; }
        //}

        //static string _madiaoc = null;

        //public static string Madiaoc
        //{
        //    get { return App._madiaoc; }
        //    set { App._madiaoc = value; }
        //}

        //static string _madangky = null;

        //public static string Madangky
        //{
        //    get { return App._madangky; }
        //    set { App._madangky = value; }
        //}

 #region Cac bien bool
        static bool _isDangKyKhachHang = false;

        public static bool IsDangKyKhachHang
        {
            get { return App._isDangKyKhachHang; }
            set { App._isDangKyKhachHang = value; }
        }

        static bool _isDangKyDiaOc = false;

        public static bool IsDangKyDiaOc
        {
            get { return App._isDangKyDiaOc; }
            set { App._isDangKyDiaOc = value; }
        }

        static bool _isDangKyQuangCao = false;

        public static bool IsDangKyQuangCao
        {
            get { return App._isDangKyQuangCao; }
            set { App._isDangKyQuangCao = value; }
        }

        static bool _isKhachCu = false;

        public static bool IsKhachCu
        {
            get { return App._isKhachCu; }
            set { App._isKhachCu = value; }
        }

        static bool _isKhachMoi = false;

        public static bool IsKhachMoi
        {
            get { return App._isKhachMoi; }
            set { App._isKhachMoi = value; }
        }

        static bool _isChupAnh = false;

        public static bool IsChupAnh
        {
            get { return App._isChupAnh; }
            set { App._isChupAnh = value; }
        }

        static bool _isChapNhanQCBao = false;

        public static bool IsChapNhanQCBao
        {
            get { return App._isChapNhanQCBao; }
            set { App._isChapNhanQCBao = value; }
        }

        static bool _isChapNhanQCBang = false;

        public static bool IsChapNhanQCBang
        {
            get { return App._isChapNhanQCBang; }
            set { App._isChapNhanQCBang = value; }
        }

        static bool _isChapNhanQCToBuom = false;

        public static bool IsChapNhanQCToBuom
        {
            get { return App._isChapNhanQCToBuom; }
            set { App._isChapNhanQCToBuom = value; }
        }
#endregion

#region Cac bien table
        static DIAOC _diaOcTemp = new DIAOC();

        public static DIAOC DiaOcTemp
        {
            get { return App._diaOcTemp; }
            set { App._diaOcTemp = value; }
        }

        static KHACHHANG _khachHangTemp = new KHACHHANG();

        public static KHACHHANG KhachHangTemp
        {
          get { return App._khachHangTemp; }
          set { App._khachHangTemp = value; }
        }

        static PHIEUDANGKY _phieuDangKyTemp = new PHIEUDANGKY();

        public static PHIEUDANGKY PhieuDangKyTemp
        {
            get { return App._phieuDangKyTemp; }
            set { App._phieuDangKyTemp = value; }
        }

        static PHIEUTHU _phieuThuTemp = new PHIEUTHU();

        public static PHIEUTHU PhieuThuTemp
        {
            get { return App._phieuThuTemp; }
            set { App._phieuThuTemp = value; }
        }

        static QC_BANG _qcBangTemp = new QC_BANG();

        public static QC_BANG QcBangTemp
        {
            get { return App._qcBangTemp; }
            set { App._qcBangTemp = value; }
        }

        static QC_BAO _qcBaoTemp = new QC_BAO();

        public static QC_BAO QcBaoTemp
        {
            get { return App._qcBaoTemp; }
            set { App._qcBaoTemp = value; }
        }

        static QC_TOBUOM _qcToBuomTemp = new QC_TOBUOM();

        public static QC_TOBUOM QcToBuomTemp
        {
            get { return App._qcToBuomTemp; }
            set { App._qcToBuomTemp = value; }
        }
#endregion
    }
}
